/**********************************
 * @Author: Your Name
 * @LastEditor: Your Name
 * @LastEditTime: 2025-11-07
 * Copyright © 2025 Your Name
 **********************************/

// OAuth配置管理相关Mock数据
export const oauthConfigMockData = {
  // OAuth配置列表
  configs: [
    {
      id: 1,
      name: 'GitHub OAuth',
      provider: 'GITHUB',
      clientId: 'github_client_id',
      clientSecret: 'github_client_secret',
      redirectUri: 'http://localhost:3200/oauth/callback/github',
      scopes: 'user:email,read:user',
      authUrl: 'https://github.com/login/oauth/authorize',
      tokenUrl: 'https://github.com/login/oauth/access_token',
      userInfoUrl: 'https://api.github.com/user',
      userInfoMethod: 'GET',
      icon: 'i-simple-icons:github',
      sortOrder: 1,
      enabled: true,
      configType: 'SYSTEM_BUILTIN',
      customConfig: null,
      createdAt: '2025-01-01T10:00:00.000+08:00',
      updatedAt: '2025-01-01T10:00:00.000+08:00',
    },
    {
      id: 2,
      name: '微信 OAuth',
      provider: 'WECHAT',
      clientId: 'wechat_client_id',
      clientSecret: 'wechat_client_secret',
      redirectUri: 'http://localhost:3200/oauth/callback/wechat',
      scopes: 'snsapi_userinfo',
      authUrl: 'https://open.weixin.qq.com/connect/qrconnect',
      tokenUrl: 'https://api.weixin.qq.com/sns/oauth2/access_token',
      userInfoUrl: 'https://api.weixin.qq.com/sns/userinfo',
      userInfoMethod: 'GET',
      icon: 'i-simple-icons:wechat',
      sortOrder: 2,
      enabled: true,
      configType: 'SYSTEM_BUILTIN',
      customConfig: null,
      createdAt: '2025-01-02T10:00:00.000+08:00',
      updatedAt: '2025-01-02T10:00:00.000+08:00',
    },
    {
      id: 3,
      name: '钉钉 OAuth',
      provider: 'DINGTALK',
      clientId: 'dingtalk_client_id',
      clientSecret: 'dingtalk_client_secret',
      redirectUri: 'http://localhost:3200/oauth/callback/dingtalk',
      scopes: 'openid,corpid',
      authUrl: 'https://oapi.dingtalk.com/connect/qrconnect',
      tokenUrl: 'https://oapi.dingtalk.com/sns/gettoken',
      userInfoUrl: 'https://oapi.dingtalk.com/sns/getuserinfo_bycode',
      userInfoMethod: 'POST',
      icon: 'i-simple-icons:dingtalk',
      sortOrder: 3,
      enabled: false,
      configType: 'SYSTEM_BUILTIN',
      customConfig: null,
      createdAt: '2025-01-03T10:00:00.000+08:00',
      updatedAt: '2025-01-03T10:00:00.000+08:00',
    },
    {
      id: 4,
      name: '自定义企业认证',
      provider: 'CUSTOM_ENTERPRISE',
      clientId: 'custom_client_id',
      clientSecret: 'custom_client_secret',
      redirectUri: 'http://localhost:3200/oauth/callback/custom',
      scopes: 'profile,email',
      authUrl: 'https://custom-enterprise.com/oauth/authorize',
      tokenUrl: 'https://custom-enterprise.com/oauth/token',
      userInfoUrl: 'https://custom-enterprise.com/api/userinfo',
      userInfoMethod: 'GET',
      icon: 'i-carbon:enterprise',
      sortOrder: 4,
      enabled: true,
      configType: 'CUSTOM',
      customConfig: '{"enterpriseId": "12345", "department": "IT"}',
      createdAt: '2025-01-04T10:00:00.000+08:00',
      updatedAt: '2025-01-04T10:00:00.000+08:00',
    },
  ],

  // 提供商选项
  providerOptions: [
    { name: 'GitHub', value: 'GITHUB' },
    { name: '微信', value: 'WECHAT' },
    { name: '钉钉', value: 'DINGTALK' },
    { name: 'Google', value: 'GOOGLE' },
    { name: 'Facebook', value: 'FACEBOOK' },
    { name: '自定义提供商', value: 'CUSTOM' },
  ],

  // 配置类型选项
  configTypeOptions: [
    { name: '系统内置', value: 'SYSTEM_BUILTIN' },
    { name: '自定义', value: 'CUSTOM' },
  ],
}
